d/rules: Explicitly disable JS-based tests where unreliable
authorSimon McVittie <smcv@debian.org>
Tue, 8 Mar 2022 02:01:50 +0000 (02:01 +0000)
committerSimon McVittie <smcv@debian.org>
Tue, 8 Mar 2022 09:59:30 +0000 (09:59 +0000)
Otherwise we'd build and install these tests if gjs (maybe an old
version) happens to be installed, despite it not being in Build-Depends.

debian/rules

index 2339dea18659663fe52105205f757fa3bba8abe7..353abe8a30153cdc2ea6144c6ded1d6bd0dad642 100755 (executable)
@@ -27,6 +27,10 @@ configure_options = \
        --without-smack \
        $(NULL)
 
+ifneq ($(filter alpha hppa ia64 m68k s390x sh4 sparc64 x32,$(DEB_HOST_ARCH)),)
+configure_options += GJS=/nonexistent/gjs
+endif
+
 ifneq ($(filter libostree-doc,$(binaries)),)
 configure_options += --enable-gtk-doc
 else